<header class="wrap-header head-large" fx="shrink">

<div>
	<a th:href="@{/uc/thirdRequest?channelId=0004}">Weixin 登录</a>
</div>

    <div id="header" class="ha-header-perspective">
        <div class="logo-box">
            <a th:href="@{http://www.faxsun.com}"><img src="../img/logo.png" th:src="@{/src/img/logo.png}" /></a>
            <span><img src="../img/header-bg.png" th:src="@{/src/img/header-bg.png}"/></span>
        </div>
        <div id="top-nav" class="add-FZZH-font clearfix">
    		<div id="search-box" class="clearfix">
    			<input type="text" name="search-input" id="search-input"
    				placeholder="范客搜索：无人机 VR ..." th:onkeypress="'javascript:runSearch(event, \'' + @{/search} + '\');'"/>
                <button class="search-submit" th:onclick="'javascript:searchPaging(\'' + @{/search} + '\');return false;'" >
                    <i class="fa fa-search" id="search_btn"></i>
                </button>
    		</div>
            <div class="btn-to-com">
                <a href="http://www.faxsun.com/shop" target="_blank">商城</a>
            </div>
			<ul class="clearfix right-nav">
                <li class="active" th:class="${(navigation==null or navigation.isEmpty())?'active':''}"><a href="" th:href="@{/}">首页</a></li>
                <li th:class="${(navigation=='product')?'active':''}"><a href="" th:href="@{/product/list}">评测</a></li>
                <li th:class="${(navigation=='news')?'active':''}"><a href="" th:href="@{/news/list}">资讯</a></li>
                <li th:class="${(navigation=='live')?'active':''}"><a href="" th:href="@{/live/broadcastList#nowBroadcast}">直播</a></li>
            </ul>
            <div class="log-box">
                <div class="logout-panel" th:unless="${#httpSession.getAttribute('profile.login')==null}">
                    <a href="" th:href="@{${'/users/'+#httpSession.getAttribute('profile.login').id}}" th:inline="text">
                         <img class="header_avatar" th:src="@{${#httpSession.getAttribute('profile.login').avatar}}"/>
                    </a>
                    <!--/*-->
                    <a th:href="@{/post/add}" target="_blank">投稿</a>
                    <!--*/-->
                    <a th:href="@{/admin}" target="_blank" th:if="${#httpSession.getAttribute('profile.login').roleLevel!=0}">管理端</a>
                    <span class="logout-icon"></span>
                </div>
                <div class="login-panel" th:if="${#httpSession.getAttribute('profile.login')==null}">
                    <a href="javascript:;" id="trigger-overlay" type="button">登录 / 注册</a>
                </div>
            </div>
        </div>
    </div>
</header>
